import {createStore, combineReducers } from "redux";
import goodsReducer from './goods';
import shoppingCartReducer from './shoppingCart';

import userOrderReducer from './order/userOrder';
import enterpriseOrderReducer from './order/enterpriseOrder';

const appReducer=combineReducers({
    goods:goodsReducer,
    shoppingCart:shoppingCartReducer,
    order:{
        userOrder:  userOrderReducer,
        enterpriseOrder:enterpriseOrderReducer
    }
})
const store=createStore(appReducer)
export default store